package com.itqf.smsplatform.controller;

import com.itqf.smsplatform.common.util.IPUtils;
import com.itqf.smsplatform.dto.SmsDto;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * projectName: Sms_Platform
 *
 * @author: 元
 * time: 2021/8/10 0010 10:37
 * description:映射下行接口
 */
@RestController
public class InterfaceController {

    @RequestMapping("/smsInterface")
    public void smsInterface(@RequestBody SmsDto smsDto , HttpServletRequest request){
        //获取客户真实ip地址
        String ip = IPUtils.getClientIpByReq(request);

        System.out.println(ip);



   }



}
